<%@ page language="java"
	import="java.util.*,com.wit.po.Company,com.wit.po.Subcompany,com.wit.po.Department,com.wit.po.Employee,com.wit.service.impl.DLcompanyserviceImp,com.wit.service.impl.EmployeeserviceImp"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<% 
   String employeeId=request.getParameter("employeeId");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>组织管理</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="<%=basePath%>/style/main.css" rel="stylesheet"
			type="text/css" />
		<link type="text/css" rel="stylesheet"
			href="<%=basePath%>/style/style.css" />
		<style>
body#bodyTree {
	margin: 8px;
	font-size: 12px;
	color: #000;
	line-height: 22px;
}

body#bodyTree a {
	color: #000;
	text-decoration: none;
}

body#bodyTree a:hover {
	color: #3366CC;
	padding: 2px 0px 0px 0px;
}

#bodyTree ul {
	margin: 0;
	padding: 0;
	list-style: none;
	background: url(<%=basePath%>/images/tree/ullist.gif) repeat-y;
}

#bodyTree ul li {
	list-style: none;
}

#bodyTree .treeview li {
	background: transparent url(<%=basePath%>/images/tree/list.gif)
		no-repeat left center;
	padding-left: 15px; /*tree list*/
}

#bodyTree .treeview li.submenu {
	background: transparent url(<%=basePath%>/images/tree/closed.gif)
		no-repeat left 0px; /*4 sub menu*/
}

#bodyTree .treeview li.closefolder {
	background: transparent url(<%=basePath%>/images/tree/closed.gif)
		no-repeat left 0px; /*closefolder style*/
}

#bodyTree .treeview li.openfolder {
	background: transparent url(<%=basePath%>/images/tree/open.gif)
		no-repeat left 0px;
	/*openfolder style*/
}

#bodyTree .treeview li.submenu ul {
	display: none;
}

#bodyTree ul li a.cur {
	font-weight: bold;
	color: #3366CC;
	padding: 2px 2px 0px 2px; /*the current style*/
}

#bodyTree .treeview .submenu i {
	width: 12px;
	height: 12px;
	font-style: normal;
	font-size: 10px;
	margin-left: -15px;
	margin-top: 5px;
	float: left;
	display: inline;
	background: url(<%=basePath%>/images/tree/transparent.gif) no-repeat
		center;
	cursor: pointer;
}

#cmsTree {
	float: left;
	width: 200px;
}

#rightDiv {
	float: right;
	width: 800px;
}

#Containner {
	width: 1000px;
}
	.mydiv input {
		width: 160px;
		font-size: 15pt;
		border: solid 1px #7F9DB9;
		font-size: 15px;	
       }
	.mydiv{
	background-color: #F1F6FF;
	}
	.mydiv legend{
	font-size: 20px;	
	}
</style>
		<script type="text/javascript"
			src="<%=basePath%>/images/tree/simpletreemenu.js">
</script>
		<script type="text/javascript" src="<%=basePath%>/js/jquery-1.3.1.js">
</script>
<script type="text/javascript">
   
    var Id;
     function Message(num)
     {
      Id=num;
      document.getElementById("bassicDiv").style.display="";
	  document.getElementById("EmployeeAddition").style.display="none";
		    var parameter = {employeeId :Id}; 
	$.ajax({
		type : "post",
		dataType : "json",
		data : parameter,
		url : "EmployeeMessage", 
		success:function(data){ 
		   employeeId=data.employeeId;
           $("#positionName option").each(function(){
		    if($(this).val()==data.positionName)
		     {
			    $(this).attr("selected","selected");
		     }
		   });
		   $("#employeeSex option").each(function(){
		    if($(this).val()==data.employeeSex)
		     {
			    $(this).attr("selected","selected");
		     }
		   });
		   
		    $("#employeeStatu option").each(function(){
		    if($(this).val()==data.employeeStatu)
		     {
			    $(this).attr("selected","selected");
		     }
		   });
		    $("#employeeMarrige option").each(function(){
		    if(data.employeeMarrige==true)
		     {
			    $(this).attr("selected","selected");
		     }
		     if(data.employeeMarrige==false)
		     {
			    $(this).attr("selected","selected");
		     }
		   });
		    $("#employeeEdu option").each(function(){
		    if($(this).val()==data.employeeEdu)
		     {
			    $(this).attr("selected","selected");
		     }
		   });
		 
		   if(data.isTurnIn==true)
		   {
		     $("#isTurnIn").attr("checked","checked");
		   }
		    if(data.isTrial==true)
		   {
		     $("#isTrial").attr("checked","checked");
		   }
		   
		$("#employeeId").val(data.employeeId);$("#employeeNameC").val(data.employeeNameC);$("#meid").val(data.employeeId);
		$("#employeeNameE").val(data.employeeNameE);$("#password").val(data.password);
		$("#employeeIdcard").val(data.employeeIdcard);$("#employeeBornDate").val(data.employeeBornDate);
		$("#enterDate").val(data.enterDate);$("#employeeAddress").val(data.employeeAddress);
		$("#employeePc").val(data.employeePc);$("#employeePh").val(data.employeePh);
		$("#employeeTel").val(data.employeeTel);$("#employeefax").val(data.employeefax);
		$("#employeeemail").val(data.employeeemail);$("#edeposit").val(data.edeposit);
		$("#ezhanye").val(data.ezhanye);$("#evalidate").val(data.evalidate);$("#eadgen").val(data.eadgen);
		$("#contacct").val(data.contacct);$("#recommenderId").val(data.recommenderId);
		$("#recruiterId").val(data.recruiterId);$("#guar1").val(data.guar1);
		$("#guar2").val(data.guar2);$("#guar1idcard").val(data.guar1idcard);
		$("#guar2idcard").val(data.guar2idcard);$("#turnInId").val(data.turnInId);
		$("#ddirecterId").val(data.ddirecterId);$("#bdirecterId").val(data.bdirecterId);
		$("#zycompetent").val(data.zycompetent);$("#dallowancedate").val(data.dallowancedate);
		$("#ballowanceDate").val(data.ballowanceDate);$("#note").val(data.note);
		$("#rname").val(data.rname);$("#zname").val(data.zname);$("#zhuName").val(data.zhuName);
		$("#yuName").val(data.yuName);$("#zengName").val(data.zengName);
		}
		});
      }
      function showdiv()
      {
      document.getElementById("bassicDiv").style.display="";
	  document.getElementById("EmployeeAddition").style.display="none";
      }
      function showadddiv()
      {
      document.getElementById("bassicDiv").style.display="none";
	  document.getElementById("EmployeeAddition").style.display="";
      }
      
      function DelEmp()
      {
        window.location.href("DelEmployeeAction?employeeId="+Id);
      }
</script>
	</head>
		<body id="bodyTree" onload="Message('<%=employeeId%>')">
				<div class="mydiv" id="bassicDiv">
    <form id="EmployeeMessage" action="MendEmployeeAction" method="post">
    <fieldset> 
    <legend>员工基本资料&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<span class="clientinfo_but" onclick="DelEmp()">删除员工</span><span class="clientinfo_but"  onclick="showadddiv()">附加信息</span></legend>
    <p>&nbsp;</p>
     <p>
    <label for="employeeId">员工编号：</label><input type="text" name="employeeId" id="employeeId" readonly="readonly"/>&nbsp;&nbsp;&nbsp;&nbsp;
    身份证号:<input type="text" id="employeeIdcard" name="employeeIdcard"/>
    </p><p>&nbsp;</p>
     <p>
     <label for="employeeNameC">中文名称：</label><input type="text" name="employeeNameC" id="employeeNameC"/>&nbsp;&nbsp;&nbsp;&nbsp;
     英文名称:<input type="text" id="employeeNameE" name="employeeNameE"/>
    </p><p>&nbsp;</p>
    <p>
     <label for="password">初始密码：</label><input type="text" name="password" id="password" value="123456"/>&nbsp;&nbsp;&nbsp;&nbsp;
     员工性别:<select name="employeeSex" id="employeeSex">
          <option>男</option>
          <option>女</option>
          </select>
    </p><p>&nbsp;</p>
	<p>
	<label for="employeeBornDate">出生日期：</label><input type="text" id="employeeBornDate" name="employeeBornDate"/>&nbsp;&nbsp;&nbsp;&nbsp;
	最高学历：<select name="employeeEdu" id="employeeEdu">
	         <option>小学</option>
	         <option>初中</option>
	         <option>高中</option>
	         <option>专科</option>
	         <option>本科</option>
	         <option>硕士</option>
	         <option>博士</option>
	         <option>博士后</option>
	         </select>
	</p><p>&nbsp;</p>	
	
	<p>
	<label for="employeeMarrige">婚姻状况：</label><select id="employeeMarrige" name="employeeMarrige">
	                                              	<option value="1">
																已婚
															</option>
															<option value="0">
																未婚
															</option>
	                                               </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	入司日期：<input id="enterDate" name="enterDate"/>
	</p><p>&nbsp;</p>	
	
	<p>
	<label for="employeepositionId">员工职位：</label><select id="employeepositionId" name="employeepositionId">
	                                              	<option>
																理财顾问
															</option>
															<option>
																理财主任
															</option>
															<option>
																行销经理
															</option>
															<option>
																高级行销经理
															</option>
															<option>
																理财经理
															</option>
															<option>
																区域经理
															</option>
	                                               </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	职位状态：<select name="employeeStatu" id="employeeStatu">
															<option value="在职">
																在职
															</option>
															<option value="离职">
																离职
															</option>
														</select>
	</p><p>&nbsp;</p>											
    <p>
    <label for="ezhanye">展业证号：</label><input type="text" name="ezhanye" id="ezhanye"/>&nbsp;&nbsp;&nbsp;&nbsp;
           有效日期至： <input type="text" name="evalidate" id="evalidate"/>
    </p><p>&nbsp;</p>
    
     <p>
    <label for="employeePh">手机号码：</label><input type="text" name="employeePh" id="employeePh"/>&nbsp;&nbsp;&nbsp;&nbsp;
           电话号码：<input type="text" name="employeeTel" id="employeeTel" />
    </p><p>&nbsp;</p>	
    
     <p>
    <label for="employeeemail">电子邮箱：</label><input type="text" name="employeeemail" id="employeeemail"/>&nbsp;&nbsp;&nbsp;&nbsp;
           传&nbsp;&nbsp;&nbsp;&nbsp;真：<input type="text" name="employeefax" id="employeefax" />
    </p><p>&nbsp;</p>
    
    <p>
    <label for="edeposit">员工押金：</label><input type="text" name="edeposit" id="edeposit"/>&nbsp;&nbsp;&nbsp;&nbsp;
            代理证号:<input type="text" id="eadgen" name="eadgen"/>
    </p><p>&nbsp;</p>
     <p>
    <label for="employeeAddress">员工地址：</label><input type="text" name="employeeAddress" id="employeeAddress"/>&nbsp;&nbsp;&nbsp;&nbsp;
          邮政编码：<input type="text" name="employeePc" id="employeePc"/>
          
    </p><p>&nbsp;</p>
    
     <p>
    <label for="contacct">合&nbsp;同&nbsp;号：</label><input type="text" name="contacct" id="contacct"/>&nbsp;&nbsp;&nbsp;&nbsp;
    </p><p>&nbsp;</p>	
     <p >
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="input" type="submit"  value="修改"  class="btn_1" />&nbsp;&nbsp; <input name="input" type="reset"  value="取消"  class="btn_1"/>
    </p>												
    </fieldset>
   </form>	
   </div>
   
   <div id="EmployeeAddition" class="mydiv" style="display:none">
   
      <form id="secondform" action="MendEmployeeAddAction" method="post">
      <fieldset>
      <legend>员工附加信息：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<span class="clientinfo_but"  onclick="showdiv()">基本信息</span></legend>
      <p>&nbsp;</p>
      <input type="hidden" id="meid" name="meid" />
     
      <p>
      <label for="recommenderId">推荐人编号：</label><input type="text" name="recommenderId" id="recommenderId" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   推荐人姓名：<input type="text" name="rname" id="rname" />
      </p><p>&nbsp;</p>
      
       <p>
      <label for="recruiterId">招募人编号：</label><input type="text" name="recruiterId" id="recruiterId" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  招募人姓名：<input type="text" name="zname" id="zname" />
      </p><p>&nbsp;</p>
      
      
       <p>
      <label for="ddirecterId">直管主任编号：</label><input type="text" name="ddirecterId" id="ddirecterId" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  直管主任姓名：<input type="text" name="zhuName" id="zhuName" />
      </p><p>&nbsp;</p>
      
      
        <p>
      <label for="bdirecterId">育成主任编号：</label><input type="text" name="bdirecterId" id="bdirecterId" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  育成主任姓名：<input type="text" name="yuName" id="yuName" />
      </p><p>&nbsp;</p>
      
       <p>
      <label for="zycompetent">增员主管编号：</label><input type="text" name="zycompetent" id="zycompetent" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  增员主管姓名：<input type="text" name="zengName" id="zengName" />
      </p><p>&nbsp;</p>
      
      
         <p>
      <label for="guar1">担保人甲姓名：</label><input type="text" name="guar1" id="guar1" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 担保人甲身份证：<input type="text" name="guar1idcard" id="guar1idcard" />
      </p><p>&nbsp;</p>
      
      
       <p>
      <label for="guar2">担保人乙姓名：</label><input type="text" name="guar2" id="guar2" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 担保人乙身份证：<input type="text" name="guar2idcard" id="guar2idcard" />
      </p><p>&nbsp;</p>
      
      
      <p>
      直接辅导津贴提取开始时间：<input type="text" name="dallowancedate" id="dallowancedate" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 育成辅导津贴提取开始时间：<input type="text" name="ballowanceDate" id="ballowanceDate" />
      </p><p>&nbsp;</p>
      
       <p>
      <label for="isTurnIn">入司是否属于转司：</label><input type="checkbox" name="isTurnIn" id="isTurnIn"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                试用标志：<input type="checkbox" name="isTrial" id="isTrial" />
      </p><p>&nbsp;</p>
     
     
       <p>
       入司时转司四联单编号：<input type="text" name="turnInId" id="turnInId" />&nbsp;&nbsp;&nbsp;
      </p><p>&nbsp;</p>
      
      
       <p>
       <label for="note">备注信息：</label> <textarea name="note" id="note" cols="35" rows="5"></textarea>&nbsp;&nbsp;&nbsp;
      </p><p>&nbsp;</p>
      
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="input" type="submit"  value="修改"  class="btn_1"/>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <input name="input" type="reset"  value="取消"  class="btn_1"/>
         </fieldset>
        </form>
       </div>	
		</body>
</html>
